const Layout = () => import("@/layout/index.vue");
export default {
  path: "/configs",
  redirect: "/configs/sysConfig",
  component: Layout,
  meta: {
    icon: "ri/information-line",
    title: "配置中心",
    rank: 10
  },
  children: [
    {
      path: "/configs/sysConfig",
      name: "sysConfig",
      component: () => import("@/views/configs/sysConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "系统配置"
      }
    },
    {
      path: "/configs/deptConfig",
      name: "deptConfig",
      component: () => import("@/views/configs/deptConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "部门配置"
      }
    },
    {
      path: "/configs/productConfig",
      name: "productConfig",
      component: () => import("@/views/configs/productConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "产品配置"
      }
    },
    {
      path: "/configs/deptProductConfig",
      name: "deptProductConfig",
      component: () => import("@/views/configs/deptProductConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "部门产品配置"
      }
    },
    // 没有集群配置了
    // {
    //   path: "/configs/clusterServerConfig",
    //   name: "clusterServerConfig",
    //   component: () => import("@/views/configs/clusterServerConfig/index.vue"),
    //   meta: {
    //     title: "集群配置"
    //   }
    // },
    {
      path: "/configs/deviceGroupConfig",
      name: "deviceGroupConfig",
      component: () => import("@/views/configs/deviceGroupConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "设备分组配置"
      }
    },
    {
      path: "/configs/deviceConfig",
      name: "deviceConfig",
      component: () => import("@/views/configs/deviceConfig/index.vue"),
      meta: {
        keepAlive: true,
        title: "设备配置"
      }
    },
    // {
    //   path: "/configs/userConfig",
    //   name: "userConfig",
    //   component: () => import("@/views/configs/userConfig/index.vue"),
    //   meta: {
    //     title: "用户配置"
    //   }
    // },
  ]
} satisfies RouteConfigsTable;
